package com.matt.repository.course;

import com.matt.domain.course.CourseType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/8
 * *******************************
 */
public interface CourseTypeRepository extends JpaRepository<CourseType, String>{
    List<CourseType> findByAreaIdAndTemplateTypeAndStatus(String areaId,int type,int status);

    CourseType findByAreaIdAndIdAndType(String areaId, String id, Integer type);
    CourseType findByAreaIdAndTypeNameAndStatus(String areaId, String typeName,int status);

}
